var url = 'wss://82368941.ws.qcloud.la';

function connect (user, func) {

  
  wx.connectSocket({
  	url: url
    //url: url + '?username='+user.nickName
  });

  wx.onSocketMessage(func);
}


function send (msg) {
  wx.sendSocketMessage({data:msg});
}
module.exports = {
  connect: connect,
  send : send
}
